StellarPay\Subscriptions\Models\Subscription A

Total Complexity 56
Dependencies 20
Dependents 40
Total lines 491
Lines of code 203
Logical lines of code 89
Comment lines 150
Methods 35
Properties 1

Methods 35

Method Rating Maintainability Complexity Lines of code
getFormattedNextBillingAt()
S
61 7 12
getLastRenewalOrder()
S
58 3 16
getPendingPaymentMessage()
S
57 2 18
getStripeDashboardLink()
S
67 3 8
calculateEndDate()
S
60 2 14
getTableName()
S
75 2 4
totalCount()
S
75 2 4
getLastPaymentMethod()
S
67 2 8
complete()
S
69 2 7
suspend()
S
69 2 7
cancel()
S
69 2 7
save()
S
69 2 7
updateStatus()
S
72 2 6
getFormattedBillingPeriod()
S
69 2 7
calculateNextBillingDate()
S
62 1 12
findByTransactionId()
S
78 1 3
factory()
S
80 1 3
getNewPaymentMethodForRenewal()
S
80 1 3
saveNewPaymentMethodForRenewal()
S
79 1 3
isScheduleType()
S
79 1 3
getMetaTableNameWithoutDBPrefix()
S
80 1 3
getLastOrderAmount()
S
75 1 4
getLastOrder()
S
79 1 3
hasEndDate()
S
80 1 3
query()
S
80 1 3
fromQueryBuilderObject()
S
80 1 3
findByFirstOrderId()
S
78 1 3
canUpdateStatus()
S
80 1 3
find()
S
79 1 3
delete()
S
80 1 3
getMetaTableName()
S
80 1 3
create()
S
73 1 5
findByFirstOrderAndItemId()
S
71 1 6
findAllByFirstOrderId()
S
78 1 3
deleteNewPaymentMethodForRenewal()
S
80 1 3